package com.xmg.shop.api.query;

import lombok.Getter;
import lombok.NoArgsConstructor;
import lombok.Setter;

import java.io.Serializable;

@Setter@Getter@NoArgsConstructor
public class QueryObject implements Serializable {
	private Integer currentPage = 1;
	private Integer pageSize = 5;
	public int getStart() {
		return (currentPage - 1) * pageSize;
	}
}
